<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
<head>
<title>select relation</title>

<link rel="stylesheet"
	href="<c:url value="/resources/css/relation/editRelation.css"/>" />
<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap.min.css"/>" />
<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap-theme.min.css"/>" />
<script src="<c:url value="/resources/lib/jquery-2.1.4.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/bootstrap-3.3.5/js/bootstrap.min.js" />"
	type="text/javascript"></script>

<!--  local js-->
<script src="<c:url value="/resources/js/util/localFolderChoose.js" />"
	type="text/javascript"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/relation/editRelation.js" />"></script>
</head>
<body>
	<header class="text-center">
		<h1>Edit relation</h1>
	</header>
	<section class="container col-md-12">

		<div class="form-group">
			<label for="csvFileChoose">choose the relation folder:</label>
			<div id="csvFileChoose"></div>
		</div>
		<div class="form-group">
			<input type="button" value="show files" id="view-btn"
				class="btn btn-default">
		</div>
		<div class="form-group">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th colspan="2">choose relation file</th>
					</tr>
				</thead>
				<tbody id="viewBody">
				</tbody>
			</table>
		</div>

		<div class="form-group">

			<form id="filterForm" method="post"
				action="<c:url value="/relation/editRelationFilter" />">
				<input type="hidden" id="filterPath" name="path" /> <input
					type="button" value="edit filter" id="filter-btn"
					class="btn btn-default">
			</form>
			<form id="functionForm" method="post"
				action="<c:url value="/relation/editRelationFunction" />">
				<input type="hidden" id="functionPath" name="path" /> <input
					type="button" value="edit mapping" id="mapping-btn"
					class="btn btn-default">
			</form>

		</div>
	</section>

</body>
</html>